import type PageSearch from '@/components/page-search/page-search.vue'
import { ref } from 'vue'

function usePageSearch() {
  const searchRef = ref<InstanceType<typeof PageSearch>>()

  function handleOk() {
    searchRef.value?.handleQueryClick()
  }

  return {
    searchRef,
    handleOk
  }
}

export default usePageSearch
